# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-flirt
_pkgname=python_flirt
_pyver=3.13
pkgver=0.9.2
pkgrel=1
pkgdesc='A Python library for parsing, compiling, and matching Fast Library Identification and Recognition Technology (FLIRT) signatures.'
arch=('x86_64')
url='https://pypi.org/project/python-flirt/#files'
license=('Apache')
depends=('python')
source=("https://files.pythonhosted.org/packages/02/8f/e8c2c09ff15da9315e3eabf001ff643e0b86db51d9bed16b6a485ce96619/$_pkgname-$pkgver-cp${_pyver//./}-cp${_pyver//./}-manylinux_2_17_x86_64.manylinux2014_x86_64.whl")
sha512sums=('709fb9781f6165032f94ee1070c47f9bbaaae5e3c13c6c468f7b2e715eb779e1e7fecb89c96efce6e28959e3b03f908109a8be9f9727932904f48e348a03694a')

package() {
  install -Dm 755 -t "$pkgdir/usr/lib/python$_pyver/site-packages/" \
    "flirt/flirt.cpython-${_pyver//./}-x86_64-linux-gnu.so"

  cp -a "$_pkgname-$pkgver.dist-info" \
    "$pkgdir/usr/lib/python$_pyver/site-packages/"
}

